import App from './App'
import { createSSRApp } from 'vue'
import * as Pinia from 'pinia';
import { createUnistorage } from "@/uni_modules/pinia-plugin-unistorage";
import { Request } from '@/util/request/index'
import uvUI from '@/uni_modules/uv-ui-tools'
export function createApp() {
  const app = createSSRApp(App)
  app.use(uvUI);
  const store = Pinia.createPinia();
  store.use(createUnistorage());
  app.use(store);
  Request(app)
  return {
    app
  }
}